<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="/css/bootstrap.css" rel="stylesheet">
</head>
<body>
<div th:include="~{main/index :: nav}"></div>
<div style="display: flex; justify-content: space-between">
    <h5>成绩管理-成绩录入<span style="color: red" th:text="${err}"/></h5>
    <h5>  当前班级：<span th:text="${clzno}"/> </h5>
    <h5> 当前课程： <span th:text="${course.cname}"/></h5>
</div>

<table class="table table-hover table-striped table-bordered" width="90%" border="1" cellspacing="0">
    <tr>
        <th>id</th>
        <th>班级编号</th>
        <th>学号</th>
        <th>学生姓名</th>
        <th>课程编号</th>
        <th>课程名称</th>
        <th>分数</th>
        <th>修改时间</th>
        <th>操作</th>
    </tr>
        <tr th:each="m:${marks}">
            <form action="/tea/doAdd" method="post" >
                <td><input type="text" name="id" th:value = "${m.id}" readonly  size="10" ></td>
                <td><input type="text" name="clzno" th:value = "${clzno}" readonly  size="10" ></td>
                <td><input type="text" name="sno" th:value = "${m.sno}" readonly size="10" ></td>
                <td><span th:text="${m.sname}"/></td>
                <td><input type="text" name="course.cno" th:value = "${m.course.cno}" readonly  size="10" ></td>
                <td><span th:text="${m.course.cname}"/></td>
                <td><input type="text" name="score" th:value = "${m.score}"></td>
                <td><span th:text="${m.tpost}"/></td>
                <td><button class="btn btn-warning">保存</button></td>
            </form>
        </tr>
</table>

</body>
</html>